package com.ywu.role.standard.data;

import com.ywu.role.standard.dto.UserRoleDto;
import com.ywu.role.standard.entity.UserRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRoleRepository {

    void createUserRole(@Param("model") UserRoleEntity userRoleEntity);

    void updateUserRole(@Param("model") UserRoleEntity userRoleEntity);

    void deleteUserRole(@Param("model") UserRoleEntity userRoleEntity);

    int queryUserRoleCount(@Param("model") UserRoleDto userRoleDto);

    List<UserRoleEntity> queryUserRole(@Param("model") UserRoleDto userRoleDto);

    List<UserRoleEntity> queryBatchByRoleIds(@Param("list") List<Integer> roleIds);
}
